﻿using AutoMapper;
using BncMall.Common.Pay;
using BncMall.Model.Models;
using BncMall.Model.ViewModels;

namespace BncMall.AutoMapper
{
    public class OrderProfile: Profile
    {
        public OrderProfile()
        {
            CreateMap<WxPayParameter, WxAppPayParameterOutDto>();
            CreateMap<WxPayParameter, WxJsApiPayParameterOutDto>();
            //CreateMap<WxPayParameter, WxJsH5ApiParameterOutDto>();

            CreateMap<UserOrderDetailViewModel, Order_MainOrder>().ReverseMap();
            CreateMap<BusinessOrderDetailViewModel, Order_MainOrder>().ReverseMap();
            CreateMap<UserOrderDetailSkuViewModel, Order_ChildOrderSku>().ReverseMap();
            CreateMap<BusinessOrderDetailSkuViewModel, Order_ChildOrderSku>().ReverseMap();
            CreateMap<OrderDetailAdminViewModel, Order_MainOrder>().ReverseMap();
        }
    }
}
